package psi

type PsiFunction struct {
	DealFuncs map[string]func(string, map[string]interface{}) (string, error)
}

func (p *PsiFunction) Init() {
	// 初始化函数映射表
	p.DealFuncs = map[string]func(string, map[string]interface{}) (string, error){
		"CR":       DealCR,
		"FACTORY":  DealFACTORY,
		"POWEROFF": DealPOWEROFF,
		"RESET":    DealRESET,
		"CALL":     DealCALL,
		"FIND":     DealFIND,
		"UPLOAD":   DealUPLOAD,
		"CENTER":   DealCENTER,
		"SOS":      DealSOS,
		"SOSSMS":   DealSOSSMS,
		"LOWBAT":   DealLOWBAT,
		"VERNO":    DealVERNO,
		"REMOVE":   DealREMOVE,
		"PEDO":     DealPEDO,
		//"SILENCETIME2": DealSILENCETIME2, //上课禁用时间段设置（自定义日期）暂时不做
		"SLEEPTIME":           DealSLEEPTIME,
		"REMIND":              DealREMIND,
		"REMIND_TAG":          DealREMIND_TAG,
		"REMIND_CH_MEDICINE":  DealREMIND_CH_MEDICINE,
		"REMIND_CH_SLEEP":     DealREMIND_CH_SLEEP,
		"REMIND_CH_WAKEUP":    DealREMIND_CH_WAKEUP,
		"REMIND_CH_DRINK":     DealREMIND_CH_DRINK,
		"REMIND_CH_MEDICINE2": DealREMIND_CH_MEDICINE2,
		"REMIND_CH_SIT":       DealREMIND_CH_SIT,
		//"PHL": DealPHL,//设置电话本+白名单（最多 50 条）待确认需求
		"WLKEY":    DealWLKEY,
		"profile":  DealProfile,
		"FALLDOWN": DealFALLDOWN,
		"BOOTOFF":  DealBOOTOFF,
		"KEYBRD":   DealKEYBRD,
		// 健康数据
		"hrtstart": DealHealthDataBldstart,
		"wdstart":  DealHealthDataWdstart,
		"bldstart": DealHealthDataBldstart,
		"oxstart":  DealHealthDataOxstart,
	}
}
